package com.pbc.gmp.dao;

import com.pbc.gmp.model.OrgInfoVo;
import com.pbc.gmp.model.OrgTreeDto;
import com.pbc.gmp.model.basemodel.Org;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author kjk
 * @since 2017-04-17
 */
@Component("orgDao")
public interface OrgMapper extends BaseMapper<Org> {

    public OrgTreeDto selectOrgTreeDtoById(java.lang.Long id);
    public List<OrgTreeDto> selectOrgTreeDtoByPid(java.lang.Long pid);
    public List<OrgTreeDto> selectAllOrg();
    public List<Org> selectOrgListByUserId(java.lang.Long id);
    public OrgInfoVo selectOrgVoListByUserId(Long id);
    public List<OrgInfoVo> selectDepartmentByOrgId(Long id);
    public List<OrgTreeDto> selectOrgByType(int type);


}